package com.hhtc.jsj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 操作表
 * </p>
 *
 * @author ty
 * @since 2022-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("post_operate")
@ApiModel(value="PostOperate对象", description="操作表")
public class PostOperate extends Model<PostOperate> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作对象")
    @TableField("operate_object_type")
    private Integer operateObjectType;

    @ApiModelProperty(value = "关联id")
    @TableField("operate_relation_id")
    private Long operateRelationId;

    @ApiModelProperty(value = "操作类型1.删除2.下架")
    @TableField("operate_type")
    private Integer operateType;

    @ApiModelProperty(value = "操作原因")
    @TableField("operate_reason")
    private String operateReason;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_time")
    private Long createdTime;

    @ApiModelProperty(value = "创建人")
    @TableField("created_by")
    private String createdBy;

    @ApiModelProperty(value = "修改时间")
    @TableField("updated_time")
    private Long updatedTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updated_by")
    private String updatedBy;

    @ApiModelProperty(value = "删除状态（ 1 正常  2删除）")
    @TableField("is_deleted")
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
